<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;

class Admins extends  Authenticatable implements JWTSubject
{
    use HasFactory;
    use SoftDeletes;
    protected $table = 'mbadmin_admins';
    static $unguarded = true;
    protected $hidden = [
        'password',
    ];
//    protected $fillable = [
//        'username','password'
//    ];
    public function getJWTIdentifier()
    {
        return $this->getKey();
    }

    public function getJWTCustomClaims(): array
    {
        return [];
    }
}
